package com.sansecy.customview;

/**
 * 项目名称：CustomView
 * 类 名 称：Utils
 * 类 描 述：TODO
 * 创建时间：2019-11-08 15:34
 * 创 建 人：sansecy
 */
public class Utils {

    private static void getAlphaColor() {
        for (double i = 1; i >= 0; i -= 0.01) {
            long round = Math.round(i * 100);
            i = round / 100.0d;
            int alpha = (int) Math.round(i * 255);
            String hex = Integer.toHexString(alpha).toUpperCase();
            if (hex.length() == 1) hex = "0" + hex;
            int percent = (int) (i * 100);
            System.out.println(String.format("%d%% — %s", percent, hex));
        }
    }

}
